package cn.ecut.demo01;

/**
 * @Author ruanxin
 */
public class Proxy implements Rent {
    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    //看房
    public void seeHouse() {
        System.out.println("中介带你看房");
    }

    //收取中介费
    public void fare() {
        System.out.println("收你中介费，吸你的血");
    }

    //签租赁合同
    public void contract() {
        System.out.println("签完合同就玩完");
    }

    @Override
    public void rent() {
        seeHouse();
        host.rent();
        fare();
        contract();
    }
}
